﻿<Window x:Class="chatwindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="chat" Height="300" Width="300">
    <Window.TaskbarItemInfo>
        	 <TaskbarItemInfo x:Name="taskBarItemInfo" ThumbnailClipMargin="40,40,40,100"  Description="ch@tr">
		  <TaskbarItemInfo.ThumbButtonInfos>
		  	    <ThumbButtonInfoCollection> 
		  	    	  <!-- TODO: Uncomment this when i'm ready to keep working with it
					    <ThumbButtonInfo DismissWhenClicked="False"   Description="Start" ImageSource="thomas.jpg"/>
				--></ThumbButtonInfoCollection>
		  </TaskbarItemInfo.ThumbButtonInfos>
		 </TaskbarItemInfo>
						        
    </Window.TaskbarItemInfo>
    <Window.Resources>
        <DataTemplate x:Key="OverlayIcon">
            <Grid Width="20" Height="20">
                <Ellipse Fill="Red"
                        Stroke="White"
                        StrokeThickness="2"/>

                <TextBlock Text="{Binding}"
                        TextAlignment="Center"
                        Foreground="White"
                        FontWeight="Bold"
                        Height="16"
                        VerticalAlignment="Center"
                        FontSize="12">
                <TextBlock.Effect>
                    <DropShadowEffect ShadowDepth="0" />
                </TextBlock.Effect>
                </TextBlock>
            </Grid>
        </DataTemplate>
    </Window.Resources>

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="221*" />
            <RowDefinition Height="40*" />
        </Grid.RowDefinitions>
        <ScrollViewer VerticalScrollBarVisibility="Auto" Grid.RowSpan="1" Margin="0,0,0,0" x:Name="scrollerBar">
            <RichTextBox  Name="chatBoxContent" VerticalScrollBarVisibility="Auto" IsReadOnly="True" />
        </ScrollViewer>
            <TextBox VerticalAlignment="Bottom" Grid.Row="1" Margin="2,5,2,5" x:Name="chatBox" TextWrapping="WrapWithOverflow"></TextBox>
    </Grid>
</Window>
